<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSTaskInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('s_task_info', function (Blueprint $table) {
            $table->increments('id');

            $table->string('title')->comment("任务标题")->index();
            $table->string('tags')->comment("标签");
            $table->text('content')->comment("内容");
            $table->string('res_url')->comment("资源地址");
            $table->string('poster')->comment("海报地址");
            $table->integer('admin_id')->comment("最后操作人");

            $table->timestamps();
            $table->SoftDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
